package cn.zxp.web.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.zxp.web.service.UserService;

@RestController
@RequestMapping("/main")
public class UserController {
	
	@Autowired
	private UserService  userService;

	@RequestMapping("test/{id}")
	public Object test(@PathVariable("id") Integer id){
		
		 
		
		return userService.getUser(id);
	}
	
}
